Answer:

The add() method, as with any component.

Class JSlider

vertical slider

The pictures show a variety of sliders. Sliders may be oriented horizontally or vertically. The tick marks and labels are part of the component. These may be displayed, or not, as an option.

horizontal slider horizontal slider

Values are adjusted by clicking and dragging the knob. As the user drags the knob, ChangeEvents are generated.

QUESTION 2:

(Take a Guess: ) What type of listener responds to a ChangeEvent?